#region Usings
using System.ComponentModel.DataAnnotations;
#endregion

namespace BK.Model
{
	[MetadataType(typeof (CurrencyMetaData))]
	public class Currency : UserDependedEntity
	{
        public string Name { get; set; }
        public string ShortName { get; set; }

		#region C'tors
		public Currency()
		{
		}

		public Currency(int userId, string name, string shortName)
		{
			Name = name;
			ShortName = shortName;
			UserId = userId;
		}
		#endregion
	}

	public class CurrencyMetaData
	{
		#region Instance Properties
		[Required(ErrorMessage = "Name is required")]
		public string Name { get; set; }
		#endregion
	}
}